﻿using FluentNHibernate.Mapping;
using Kratos.Framework.ContentManagement.Models.Order;

namespace Kratos.Framework.ContentManagement.Maps.Order
{
    public class LineItemMap : ClassMap<LineItem>
    {
        public LineItemMap()
        {
            Id(m => m.LineId).GeneratedBy.Identity();

            Map(m => m.Quantity);

            References<Orders>(m => m.Order).Column("OrderId");
        }
    }
}
